package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.Shift;

import java.time.LocalTime;
import java.util.Date;

/**
 * 班次视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Shift.class)
public class ShiftVo {

    /**
     * 班次ID
     */
    @ExcelProperty(value = "班次ID")
    private Long shiftId;

    /**
     * 班次名称
     */
    @ExcelProperty(value = "班次名称")
    private String shiftName;

    /**
     * 上班时间
     */
    @ExcelProperty(value = "上班时间")
    private LocalTime workStartTime;

    /**
     * 下班时间
     */
    @ExcelProperty(value = "下班时间")
    private LocalTime workEndTime;

    /**
     * 午休开始时间
     */
    @ExcelProperty(value = "午休开始时间")
    private LocalTime lunchStartTime;

    /**
     * 午休结束时间
     */
    @ExcelProperty(value = "午休结束时间")
    private LocalTime lunchEndTime;

    /**
     * 迟到阈值(分钟)
     */
    @ExcelProperty(value = "迟到阈值(分钟)")
    private Integer lateThresholdMinutes;

    /**
     * 早退阈值(分钟)
     */
    @ExcelProperty(value = "早退阈值(分钟)")
    private Integer earlyThresholdMinutes;

    /**
     * 状态(0正常 1停用)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
